package com.study.clients;

import com.study.api.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @description：用户授权
 * @author：李军荣
 * @date: 2020/12/28 16:36
 */
@FeignClient(value = "spring-cloud-user-service")
public interface IUserAuthFeignClients {

    @GetMapping(value = "/token",consumes = MediaType.APPLICATION_JSON_VALUE)
    Result<String> validToken(@RequestParam("token")String token);

}
